package tk.mybatis.springboot.common.base;

import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * Created by Administrator on 2017/8/10.
 */
public interface IBaseService<T> {
    T getById(Object id) throws Exception;

    List<T> getAll() throws Exception;

    List<T> getByExample(Example example) throws Exception;

    T getUniqueByExample(Example example) throws Exception;

    void deleteById(Object id) throws Exception;

    void delByIds(String ids) throws Exception;

    void updateById(T obj) throws Exception;

    void save(T obj) throws Exception;

    void savAll(List<T> list) throws Exception;
}